import request from './request'
import type { LoginDto, TokenVo } from '@/types'

export const login = (data: LoginDto) =>
  request.post<TokenVo>('/auth/login', data) 
export function updatePassword(data:{oldPassword:string; newPassword:string}){
  return request.post('auth/password', data)
}